package br.com.jdcanado.gae.inforse.model;

import java.io.Serializable;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable(identityType=IdentityType.APPLICATION, detachable="true")
public class Encargo implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key id;
	
	@Persistent
	private String descricao;
	
	@Persistent 
	private float porcentagemEncargo;
	
	@Persistent
	private float valorEncargo;
	
	@Persistent
	private TotalOrcamental totalOrcamental;

	public Key getId() {
		return id;
	}

	public void setId(Key id) {
		this.id = id;
	}

	public String getDescricao() {
		return descricao;
	}

	public void setDescricao(String descricao) {
		this.descricao = descricao;
	}

	public float getPorcentagemEncargo() {
		return porcentagemEncargo;
	}

	public void setPorcentagemEncargo(float porcentagemEncargo) {
		this.porcentagemEncargo = porcentagemEncargo;
	}

	public TotalOrcamental getTotalOrcamental() {
		return totalOrcamental;
	}

	public void setTotalOrcamental(TotalOrcamental totalOrcamental) {
		this.totalOrcamental = totalOrcamental;
	}

	public float getValorEncargo() {
		return valorEncargo;
	}

	public void setValorEncargo(float valorEncargo) {
		this.valorEncargo = valorEncargo;
	}
	
}
